<?php

//商品管理
use think\facade\Route;

Route::group('product', function () {
    Route::get('/page', 'merchants/product/product_page');
    Route::get('/list', 'merchants/product/product_list');
    Route::post('/save', 'merchants/product/product_save');
    Route::post('/del', 'merchants/product/product_del');
    Route::get('/info', 'merchants/product/product_info');
    Route::post('/save_stock', 'merchants/product/product_save_stock');
});

//商品分类管理
Route::group('product_class', function () {
    Route::get('/page', 'merchants/product/class_list');
    Route::post('/save', 'merchants/product/class_save');
    Route::post('/del', 'merchants/product/class_del');
    Route::get('/info', 'merchants/product/class_info');
    Route::post('/save_sort', 'merchants/product/class_save_sort');
    Route::get('/tree_list', 'product/class_tree_list');                    //商品分类列表树状
});